Page({
  data: {
    balance: '0.00',
    activeTab: 'balance' // 默认选中的选项卡
  },
  onLoad: function() {
    // 初始化余额数据
    this.setData({
      balance: '0.00'
    });
  },
  switchTab: function(e) {
    const tab = e.currentTarget.dataset.tab;
    this.setData({
      activeTab: tab
    });
  }
});